#pragma once
#include <iostream>
using namespace std;
class BankAccount
{
public:
	BankAccount(const string& name, const string& account, double deposit=0.0);
	friend ostream& operator<<(ostream& os, const BankAccount& ba);
	void Deposit(double money);
	bool Draw(double monay);

private:
	string name;
	string account;
	double deposit;
};
ostream& operator<<(ostream& os, const BankAccount& ba);



